package com.wanmait.baohan.mapper;

import com.wanmait.baohan.pojo.BookingAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookingAccountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookingAccount record);

    int insertSelective(BookingAccount record);

    BookingAccount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookingAccount record);

    int updateByPrimaryKey(BookingAccount record);

    List<BookingAccount> selectByAllTicket(@Param("id") Integer id, @Param("state") Integer state);

    void updateByAccount(@Param("userId") Integer userId, @Param("trvalId") Integer trvalId);

    Integer selectAllCost(Integer applicationId);

    List<BookingAccount> findBookingListById(Integer id);
}